package com.authine.cloudpivot.web.api.secondopen.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
import java.util.UUID;

/**
 * @Author: brookpeng
 * @Date: 2022/1/25 11:06
 */
@Data
@Table(name = "iusi6_NoteStatementPageLis")
public class NoteStatementPageList {

    public NoteStatementPageList(){
        String uuid= UUID.randomUUID().toString().replaceAll("-","");
        this.setId(uuid);
        this.setCreater("");
        this.setCreatedDeptId("");
        this.setOwner("");
        this.setOwnerDeptId("");
        this.setCreatedTime(new Date());
        this.setModifier("");
        this.setModifiedTime(new Date());
        this.setSequenceStatus("COMPLETED");
        this.setOwnerDeptQueryCode("1");
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String id;

    /* 业务字段start */

    /**
     * 账单总金额
     */
    @Column(name = "TotalPayAmount")
    private BigDecimal TotalPayAmount;

    /**
     * 对账单编码
     */
    @Column(name = "StatementCode")
    private String StatementCode;

    /**
     * 周期开始时间
     */
    @Column(name = "BeginDate")
    private String BeginDate;

    /**
     * 周期结束时间
     */
    @Column(name = "EndDate")
    private String EndDate;

    /**
     * 最晚核对时间
     */
    @Column(name = "LatestCheckDate")
    private String LatestCheckDate;

    /**
     * 是否过期说明
     */
    @Column(name = "OverDueRemark")
    private String OverDueRemark;

    /**
     * 待付款
     */
    @Column(name = "PayAmount")
    private BigDecimal PayAmount;

    /* 业务字段end */

    /**
     * 数据标题
     */
    @Column(name = "name")
    private String name;

    /**
     * 创建人
     */
    @Column(name = "creater")
    private String creater;

    /**
     * 创建人部门
     */
    @Column(name = "createdDeptId")
    private String createdDeptId;

    /**
     * 拥有者
     */
    @Column(name = "owner")
    private String owner;

    /**
     * 拥有者部门
     */
    @Column(name = "ownerDeptId")
    private String ownerDeptId;

    /**
     * 创建时间
     */
    @Column(name = "createdTime")
    private Date createdTime;

    /**
     * 修改人
     */
    @Column(name = "modifier")
    private String modifier;

    /**
     * 修改时间
     */
    @Column(name = "modifiedTime")
    private Date modifiedTime;

    /**
     * 单据状态
     */
    @Column(name = "sequenceStatus")
    private String sequenceStatus;

    /**
     * 部门查询编码
     */
    @Column(name = "ownerDeptQueryCode")
    private String ownerDeptQueryCode;
}
